﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
using YArchitech.Revit;

namespace ModelValidation.ClearHeightCheck
{
	public class FilledRegionFilter : ISelectionFilter
	{
		bool ISelectionFilter.AllowElement(Element elem)
		{
			return elem is FilledRegion && (elem as FilledRegion).GetParameter("填充类型").AsString().Equals("图形填充");
		}

		bool ISelectionFilter.AllowReference(Reference reference, XYZ position)
		{
			return false;
		}
	}
}
